package com.wyh.service.feemanagementservice;

import com.wyh.domain.dto.feemanagementdto.ResourceFeeDTO;
import com.wyh.domain.dto.feemanagementdto.ResourcePhoneOrNameDTO;
import com.wyh.domain.po.feemanagementpo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wyh.domain.po.groupOne.customer.Customer;

import java.util.List;

/**
 * <p>
 * 资源表 服务类
 * </p>
 *
 * @author ggt
 * @since 2024-05-21
 */

public interface IBuildingunitsService extends IService<BuildingUnit> {

    //根据账号获取所管辖的楼盘
    List<ProjectUnitNode> getPerjectes(String account);

    //根据楼盘id查询楼盘下的所有资源
    List<Resourcees> getResourcesByProjectId(Long projectId);

    //楼层查询资源
    List<ResourceFeeDTO> getResourceListByBuildingUtilId(Integer floorId, Integer buildingid, Long projectid,Integer resourceType);
    //楼栋查询资源
    List<ResourceFeeDTO> listResourcesByBuildingUtilId(Integer buildingid, Long projectid,Integer resourceType);
    //楼盘查询资源
    List<ResourceFeeDTO> listResourcesByProjectId(Long projectid,Integer resourceType);

    // 根据楼盘（园区）id查询该楼盘（园区）下的楼栋
    List<BuildingUnit> getBuildingUnits(Long projectId);

    // 根据楼栋id查询该楼栋下的楼层
    List<Layeres> getFloorsBybuildingId(Integer buildingId);

    //根据楼栋id查询资源
    List<Resourcees> getResourcesByBuildingId(Integer buildingId);

    //根据楼层id查询该楼层下的资源
    public List<Resourcees> getResourcesByFloorId(Integer floorId);

    //根据客户名称或者客户手机号
    List<ResourcePhoneOrNameDTO> getResourceByNameOrPhoneNull(String nameOrPhone, Integer type, String account);





}
